package com.saishi.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book {
    int bookid;
    String bookname;
    String bookdesc;

    public Book(int bookid, String bookname) {
        this.bookid = bookid;
        this.bookname = bookname;
    }

    public Book(String bookname, String bookdesc) {
        this.bookname = bookname;
        this.bookdesc = bookdesc;
    }

    @Override
    public String toString() {
        return "\nbook{" +
                "bookid=" + bookid +
                ", bookname='" + bookname + '\'' +
                ", bookdesc='" + bookdesc + '\'' +
                '}';
    }
}
